export default {
	state: {
		shoppingCart: [], //购物车
		goodsInfoList: [], // 商品列表
		goodsInfo:{}, //单个商品信息
		orderDetail:{},
		refund:{}, // 退款信息
		commentInfo:{}, // 评论信息
	},
	mutations: {
		//单个商品信息
		setGoodsInfo(state,info) {
			state.goodsInfo = info
		},
		//设置购买商品列表
		setGoodsInfoList(state,infoList) {
			state.goodsInfoList = infoList
		},
		//添加购物车
		addShoppingCart(state,data) {
			
		},
		//移除购物车
		delShoppingCart(state,data) {
			
		},
		setOrderDetail(state,data) {
			console.log('setOrderDetail',data)
			state.orderDetail = data
		},
		//设置退款信息
		setRefund(state,data) {
			state.refund = data
		},
		//缓存评论信息
		setCommentInfo(state,data) {
			state.commentInfo = data
		}
	}
}